extends ./base_layout.jade

block header
    a(class="btn btn-navbar", data-toggle="collapse", data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse")
        span.icon-bar
        span.icon-bar
        span.icon-bar

    a(class="brand", href="/")
        | 消拼

    div(class="nav-no-collapse header-nav")
        ul(class="nav pull-right")
            li(class="dropdown")
                a(class="btn dropdown-toggle", data-toggle="dropdown", href="#")
                    i(class="halflings-icon white user")
                    span= locals.username
                    span.caret
        ul.dropdown-menu
            li.dropdown-menu-title
                span 账号
            li
                a(href="/pass")
                    i(class="halflings-icon change")
                    |  修改密码
            li
                a(href="/logout")
                    i(class="halflings-icon off")
                    |  注销

block content
    - var v = (new Date).getTime();
    <!-- start: Main Menu -->
    div#sidebar-left.span2
        div(class="nav-collapse sidebar-nav")
          ul(class="nav nav-tabs nav-stacked main-menu")
            li
                a(href="/")
                    i.icon-bar-chart
                    span.hidden-tablet 面板
            li
                a(class="dropmenu", href="#")
                    i.icon-folder-close-alt
                    span.hidden-tablet 消拼
                ul
                    li
                        a(href="/accounts?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 账号
                        a(href="/customers?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 用户
                        a(href="/merchants?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 商户 
                         a(href="/deposits?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 缴保证金
                         a(href="/withdraws?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 退保证金
                         a(href="/contracts?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 拼单
                         a(href="/contractors?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 订单
                         a(href="/payments?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 支付
                         a(href="/refunds?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 退款
                    li
                        a(href="/blacks?app=shopping&v=#{v}")
                            i.icon-bar-chart
                            span.hidden-tablet 黑名单
                        
    <!-- end: Main Menu -->
      
    <!-- start: Content -->
    div#content.span10
        block main
    <!-- start: Content -->
  
block footer
    p
        span(style={"text-align":left,float:left}) 版权 2015 
        a(href="", alt="") 微游世界
